class User {

  String id;

  String name;

  String phone;

  String password;

  User(this.id, this.name, this.phone, this.password);

  static User fromJson(Map<String, dynamic> map) {
    return User(
      map["id"],
      map["name"],
      map["phone"],
      map["password"]
    );
  }

  @override
  String toString() {
    return 'User{id: $id, name: $name, phone: $phone, password: $password}';
  }


}